<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>成功</title>
</head>
<body>

<div th:if="${session.userinf}!=null">
    <h1>登录成功</h1>
    <h1 th:text="${session.userinf}"></h1>
</div>
<div th:unless="${session.userinf}!=null">
    <h1>登录失败</h1>
</div>
</body>
</html>